package com.leemz.ch2.jdbc;

import com.leemz.ch2.jdbc.entity.Student;
import com.leemz.ch2.jdbc.secondedition.StudentServiceSecond;
import com.leemz.ch2.jdbc.thirdedition.StudentServiceThird;
import com.leemz.ch2.jdbc.util.JdbcTemplate;

import java.util.List;

public class JdbcDemoMain {
    public static void main(String[] args) {
        StudentServiceThird serviceSecond = new StudentServiceThird();
        Student one = serviceSecond.get(2);
        System.out.println(one.getName());
        List<Student> list = serviceSecond.list();
        System.out.println(list.size());
        int count = serviceSecond.getCount();
        System.out.println(count);
    }
}
